<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/7/24
 * Time: 9:38
 */

namespace app\exception;


class ErrorCode
{
    const SYS_ERROR = ["-1" => "系统繁忙"];
    const PARMA_ERROR = ["2" => "参数异常"];
    const U_A_P_ERR = ["10001" => "用户名或密码错误"];
    const TOKEN_ERR = ["10002" => "登录token错误"];
    const Expired_token = ["10002" => "token过期"];
    const USER_NOT_FOUND = ["10002" => "抱歉！该用户不存在!"];
    const CODE_ERR = ["10002" => "验证码错误"];
    const CODE_TRY_ERR = ["10003" => "请稍1分钟后重试"];
    const NOT_404 = ["10004" => "记录不存在或已经被删除"];
    const GOODS_INFO_ERR = ["10005" => "提交商品有误"];
    const OUT_OF_STOCK = ["10006" => "库存不足"];
    const ORDER_ERR = ["10007" => "订单异常"];
    const OUT_OF_POINT = ["10007" => "积分不足"];
    const ORDER_NOT_404 = ["10008" => "订单不存在"];
    const ORDER_NOT_FH = ["10009" => "订单还没有发货"];
    const ADDRESS_NOT_404 = ["10004" => "收货地址不存在"];
    const USER_CHECK_ERR = ["10010" => "登录异常!该手机号连续验证5次。请重新获取验证码"];
    const USER_S_O = ["10011" => "已经提交多次，无需重复提交"];
    const OP_PF = ["10012" => "操作频繁"];
    const EX_AL_READY = ["10013" => "已经兑换过了"];
    const USERNAME_EXISTS = ["10014" => "用户名存在"];
    const USERNAME_EXISTS1 = ["10014" => "用户名存在1"];
    const EXISTS_SUB_MENU = ["1001"=>"存在子菜单,不允许删除"];
    const NO_POWER = ["1002"=>"没有权限"];


}